package com.magic.gre.mvp.contract;

import com.magic.gre.entity.ChooseUnitBean;
import com.magic.gre.entity.ResAddressBean;
import com.noname.lib_base_java.mvp.BaseContract;
import com.noname.lib_base_java.net.download.DownloadInfo;

import java.util.List;

import io.reactivex.Observer;
import okhttp3.ResponseBody;

/**
 * Author: Lmoumou
 * Date: 2019-01-08 10:10
 * 文件名: ChooseUnitContract
 * 描述:
 */
public interface ChooseUnitContract {
    interface Model extends BaseContract.BaseModel {
        void mUnitList(Observer<ResponseBody> observer, String thesaurusId);
        void mResourcesAddress(Observer<ResponseBody> observer,String id);
        void mLastUnit(Observer<ResponseBody> observer, String unitId);
    }

    interface Presenter extends BaseContract.BasePresenter {
        void pUnitList(String thesaurusId);
        void pResourcesAddress(String id);
        void pLastUnit(String unitId,String name);
    }

    interface View extends BaseContract.BaseView {
        void vUnitList(List<ChooseUnitBean> unitBeanList);
        void vResourcesAddress(DownloadInfo addressBean);
        void vLastUnit(String lastId,String unitId,String name);
    }
}
